from Loan import *

def main():
    annuaalInterstRate = eval(input("请输入年利率："))
    numberOfYears = eval(input("请输入年数："))
    loanAmount = eval(input("请输入金额："))
    borrower = input("请输入姓名")
    loan = Loan(annuaalInterstRate,numberOfYears,loanAmount,borrower)
    print("该存款名:",loan.getBorrower())
    print("每个月的支付额：",format(loan.getMonthlyPayment(),".2f"))
    print("总支付额：",format(loan.getTotalPayment(),".2f"))

main()